Is it obligatory to turn off the water or leave the shower cubicle and come back in after washing my body before ghusl?

You don’t need to step aside and go back in. You make the intention and begin washing your head even if it’s wet.