Fixing onAfterSlide