Function to handle scan selection sliderbar callbacks