Remove unnecessary padding around thumbnails