Refactor slider method in optionsVC.