allowed closure of the slider