Thumbnail alignment bug fix