added next and previous classes and ng-show for next and prev