**Hint:**
From two foci, we can define two families of confocal conics, ellipses and hyperbolas. Furthermore, they are orthogonal.
$ coordinates associated to this network of curves. Then any transformation of the form $(u,v)\to(\phi(u),v)$ achieves the desired effect. Obviously, the $v$-curves map to themselves.
See <