fix lazy loading for thumbnails