stacking matrices for G!