Low lying spectral gaps induced by slowly varying magnetic fields