adding distance slider