hack to make sure the thumbnails appear in only one row