Add logic for draggable threshold slider