created a slider to hold controls for graphs