sliderbox gets api to close window