fixing slideshow js