fixing bad behaviour of the carousel on pause