updated slideshow js