Added tweaks to change visibility of thumbnails if needed