change updating slide counter to afterSlideInsert event.