next and previous working on slider