replace range by slider