Implemented delete method in slider.