Fixed bug which did not turn of "Next" when last slide is displayed