change click def in slider