There are at least a few reasons to explain why you think the long-wall set-up sounds better.
The center of any rectangular or square room is a bass “dead zone,” with bass intensity increasing as you move from that point towards any boundary. So, with the short-room orientation you were probably sitting roughly in the middle of the room, which explains the weak bass you experienced.
With the system set up on the long wall, I imagine you’re sitting close to the back wall, which accounts for the improved bass. And as you noted, the speakers image better since they are further from the side walls. Win, win. Personally I prefer the front speakers a bit further apart than dictated by the standard “equidistant triangle” mantra, as this also gets a wider soundstage. Setting up on the long wall accommodates this better than on the short wall.
Regards,
Wayne A. Pflughaupt