fix slider reinitialize
use preventdefault