It is a good idea to use a slider with discretion. Sliders like what you have used is a bad usability practice. I wasn't able to slide the slider at all and I wasn't able to navigate the site at all.
But in cases, where you have limited data points to offer, having the slider bar readjust to the next data point is a good idea.