Add of 'beforeSlideChange' method

Just to be able to call a custom method when the new element is about to slide in.