slider and close button added with dragging