javascript slider, added hover effect