added preventDefault to slider