Filtered the visualized frequencies based on the slider value