Fix slideshow bugs.