Slideshow works without errors on other pages