added minslice and threshold slider and added click for nearest zero