adding snap distance slider