That's all it does. I think it's an effect added to visually "compensate" for tilting the phone. I don't use the stock gallery, though, since it's slower than a glacier.
The gallery is one of the things I hate about ICS. What are you using instead? Is there a way to flash the gingerbread gallery on ICS?
Sent from my Nexus S 4G using Tapatalk