modified slideshow to work with CSS in the javascript for initialising and scrolling forward