Slits and high-resolution X-ray diffraction