Creates SliderDialogBuilder for settings dialogs and cleans up code.