if you turn on a light to determine which slit the particles pass through, thereby eliminating the other option, you will make the interference pattern disappear. And indeed, when the experiment is performed, turning on a light changes the results from the interference pattern, to a pattern like that! Moreover, we can vary the experiment by employing very faint light so that not all of the particles interact with the light.