stop change slide if beforeTransition returns false