Door jamb switch length?

I bought 2 new door jamb switches (originals missing). I installed them, but the are approx 1/4” too long. Do they make shorter ones? Is it possible to shorten these? How?

Thanks

image.jpg