In general, an air gap of 3-5 mm is not a problem, but this must be considered when calculating the magnet.