Contact and magnet can be screwed into the flange to enable distance adjustment.
Alarmtech Magnetic Contacts: