added class 'visible' for visible thumbnails