This always bothered me too. If the entire screen had flashed, it would be easy -- they blinded everyone momentarily and then switched places. But there must be some sort of smoke and mirrors trick, as Vivi22 said.