The answer by Craig Gidney is quite adequate for the question, but I want to address the word "collapse" in the title, since search engines will be homing in on it. From webster.com
1: to fall or shrink together abruptly and completely : fall into a jumbled or flattened mass through the force of external pressure <a blood vessel that collapsed>
2: to break down completely : disintegrate <his case had collapsed in a mass of legal wreckage — Erle Stanley Gardner>
3: to cave or fall in or give way <the bridge collapsed>
4: to suddenly lose force, significance, effectiveness, or worth <fears that the currency may collapse>
5: to break down in vital energy, stamina, or self-control through exhaustion or disease; especially : to fall helpless or unconscious
6: to fold down into a more compact shape <a chair that collapses> Definition of the word "collapse", Webster's dictionary
Note how the word describes a physics situation.
A wave function is a mathematical formula with complex numbers, posited for all particles in the quantum mechanical framework, from which the classical dimensions we live in emerge. It is a mathematical expression of a very successful model which, when squared with its complex conjugate gives a probability density distribution for observing with real numbers the problem at hand. In the case of the double slit experiment, the probability of finding the photon at the specific (x,y) of the screen.
The wavefunction exists in our copy books and our computers as a mathematical formula valid continuously. It is an unfortunate label that the word "collapse" has been attached to any property of the wavefunction. The wave function does not break down in any of the senses of the definition of the world collapse. It is always there, in our copy books and computers. A single measurement picks up an instance, and accumulation of measurements gives the probability distribution that the wavefunction so successfully models.
Example:
Take this paper which gives Probability of delivery within x days of a given date, the date given by the doctor from the data the mother gave.

The birth of a baby will be an instance of this plot, which accumulated with more instances should verify the distribution shown. Is anything in any logical way collapsing, according to the definitions of Webster?
I hope this makes clear that collapse is a wrong word to use for a mathematical distribution, attributing reality values. It is at worst an anthropomorphic word, giving human attributes to a mathematical formula, at best a misguided identification of the complex mathematical formula to the real formula of a collapsing balloon. The wave function is not a balloon either.