onSlideBefore cancelling trasition