Marking next, previous and current item with classes.