Fix toogle thumbnails script