Added close the slide if you click elsewhere.