added conditional statement to prev/next fn

Prevent carousel controls from navigating past valid item range which would "break" navigation in the other direction.
added conditional to prev/next fn
Merge pull request #156 from pixelsailor/master

fix for bug #155 - prev/next buttons