Re order the z index of elements from residemenu