Window sensor too big for window frame

A similar post is found here:

The slimmest sensor magnets I have seen, which would likely fit in your case would be the RE122 Nanomax. It is a 319.5Mhz compatible sensor.