Stack everything vertically and use each groups’ Y coordinate