A spin-flip extension of the Fulton-Gouterman transformation