Add destroying Property

Added a destroying property, because if you destroy the slider according to your window size, the resize method is triggered after you destroy the slider.