On monomial curves obtained by gluing