before refactoring slideshow