Slider Help with Button

I'm a newbie and I need help this is for a lighting system

I want to setup a slider that is controlled by a button (so if you have 8 buttons and 1 slider you push button 3 and the slider work or button 7 )