Svag matchende rim for diffraction grating