fix bug with prev nav

Hi, here a bug that I fixed. The problem was in slide back from currentSlide 0 and 1. Variable currentSlide became negative.