before changing thumbnails