Slide switches should hold in place with friction, but if you find it loose, you can use adhesives to permanently mount in place.