threshold slider in UI