Border fix for thumbnails