moved slider code back to html file