Make smoother animation when swiping

Calling updateActiveSlide() method right after css transition makes pause a short moment while animating to next page when swiping.
In updateActiveSlide() method, classes of slides are modified and occur style recalculation and it was cause.
I have moved updateActiveSlide to transitionend event.