make thumbnails stop flickering