beforeSlide seemed to be missing... added it in.