Quantum mechanics and the double-slit experiment