Marquee select the entire cube (drag a box around the cube with the Selector Tool). From the Arrange menu, select Ungroup. Select all of the top elements and Group them (Ctrl-G) as shown inside of the red outline. Group all the elements for the lower two sides as indicated by the gold outline. (The outlines are for clarity only).