Make smoother swipe animation

I had a jank just before starting swipe animation because update classes of slides.

I changed to use classList for updating classes of slides.
It make very faster style recalculation than before and fix the jank.
( 60ms -> 6ms for style recalculation with 30 slides )