Fix slideshow counter.