added slider next and previous functionality