fixed the slideshow by putting scripts into seperate js file