script main slideshow