How can make a slider vertical or horizontal with button options?

Study how this works ...