add j slider for threshold