Added sliding class for animations when using the slider (corrects rect animations)