Fix borders around thumbnails