This switch has PC pins for soldering to a PCB.
The three switch pins have a separation of 100 mils.
However, there are “ears” or solder tabs at the end of the switch body, so this part would have three holes for the PC pins and two larger diameter holes to pass the solder tabs thru the PCB as shown in the attached drawing:
This part should do what you want. Note the hole in place of the slot (because Fritzing parts can’t do slots) may be an issue as it won’t provide much mechanical support compared to a slot.
Thank you Peter. This model will work very well. This side switch moves rather easily.
There should be no mechanical issues related to holding its position on the PCB.