slider closes on submit