Fixes dot update issue introduced in 01a774d0

Carousel dots should no longer reset to the first slide after window resize.