Gluon contributions to small χ heavy flavour production