Update prev and next buttons + create next function in slider.js file