This only seems to be happening in one of my galleries, and I'm not sure why (it also happens on a friend's gallery). There are weird gaps shown in the listing of thumbnails.
Example here.
The 3rd and 5th rows only display one thumbnail, while the others are full. I can't figure it out. I've tried resorting the gallery so the images with a similar ratio are grouped together, and still nothing.