Fix row layout of thumbnails