Fix problem on responsive thumbnails