Pausing carousel when modal is visible