Add canSwipeTo function to optional parameters.

Function be called prior to any slide change to determine whether is valid to show the slide being moved to. If returns false, then will act as if Swipe had reached the end of slides.