Climbing Accident

This climbing accident seems like it could have been prevented, but I dont know much about rock climbing. He seems like he was doing alright for a while but got a little hairy there at the top. Is there supposed to be that much slack in the rope. Looks like he fell a good ways before he reached the end of the line.