Heisenberg Uncertainty Principle
If we make the slit narrower to better determine the direction of the photon (and hence the location of the electron), the wave nature of light will cause the light to be diffracted. This diffraction pattern will cause some uncertainty in where the photon actually came from, and hence some uncertainty in where the electron was .