javascript slider, created next and prev button scripts