added the publich callback attribute onSlideChanged