slideshow flicker fix