Added a example onSlide calback function