Optimize slider and segmented control methods.