I am not sure I understand this. For example:
Suppose we have $\alpha: \mathbb Z/(3) \to \mathbb Z/(6)$ where $$0\mapsto 0, \quad 1 \mapsto 2, \quad 2 \mapsto 4,$$ and we have $\beta: \mathbb Z/(3) \to \mathbb Z/(9)$ where $$0\mapsto 0, \quad 1 \mapsto 3, \quad 2 \mapsto 6.$$
Then we want the subgroup of $\mathbb Z/(6) \oplus \mathbb Z/(9)$ consisting of $(0,0), (2,-3), (4, -6)$? Why?
Why $(\alpha(z), -\beta(z))$? Why the negative $\beta(z)$?
How do we know the pairs consisting of $(f(z), -g(z))$ will always be a subgroup?

This term 'gluing' probably comes from topology.
If $f:A\to B$ and $g:A\to C$, then we want to consider $B+C$ (this is just the disjoint union in the category of topological spaces) and glue $B$ and $C$ along $f$ and $g$, by identifying $f(a)$ with $g(a)$ for each $a\in A$.
That is, we take the quotient by the equivalence relation generated by the relation $f(a)\sim g(a)$, so that in the quotient we will effectively have $f(a)=g(a)$.
The same is happening for Abelian groups.
The coproduct is the direct sum, and we want to enforce $f(a)=g(a)$, or equivalently, $f(a)-g(a)=0$, for all $a\in A$, so we take the subgroup generated by the elements $f(a)-g(a)$ in $B\oplus C$, and take the quotient by this.
Also note that in your example, we have $-(2,-3)=(-2,3)=(4,-6)$.