Dispersion and shoulshape

If I cast dispersion and then soul shape will I keep the dispersion buff?

I ask this as a way to cheese through the giant beam of death on the eye of the jailor. Soulshapes teleport is a little short so if I screw it up I was hoping to use dispersion as a backup.

Like I told my wife while we were dating… it doesn’t hurt to have two forms of protection.