fix removing of slider from modal