Fixed a bug for non chrome browsers, was deleting
the slider when the slider doesn't exist.