Slideshow transition fix