Is it possible to use a slider to change tabs?

Wondering if it is possible to have a user switch tabs not by manually clicking each tab, but by using a slider and changing tabs that way. If so, would it be possible to hide the manual tab navigator and just show the slider?