Yeah, that's a 3 position slide switch.
There are two different styles of this.
You can tell the difference by the layout of the pins on the back.
In either case, it's either single pole or double pole.
If there are 4 pins (or two rows of 4) with the four pins spaced equally:
A B C D (A&B are shorted)
^---^
A B C D (B&C are shorted)
^---^
A B C D (C&D are shorted)
^---^
If the pins are spaced unevenly it is more likely a normal common and three selections.
These slide switches wear out over time, the little tabs on the bottom that hold the pieces loosen and the pressure on the contacts decreases.
If you can identify and replace the switch, that's one thing.
You could remove the switch, either open it up and clean it (or not) and press the little metal tabs with pliers to hold the pieces together more tightly.
If you don't need the options of that switch, you could also replace it with jumpers.
Of course, replacing it would be the thing.