modified onBeforeSlide callback behavior and parameters list:
- 4th parameter: direction ('prev' or 'next')
- onBeforeSlide returns true, nothing changes; if it returns false, further sliding aborting;