How do i make a single slider control two gpio pins

Read this…

and attach your slider to a virtual pin.

Pete.