May be encoder? Similar to mouse scroll. Slider = linear potentiometer ->friction-> wear.
I don't know if it's practically possible but there are contactless systems for sliders, either magnetic or optical. You could basically take a mouse sensor and just have a flat surface on the underside of the slider. Perhaps some endpoint contacts for calibration.