Effect of gating currents of ion channels on the collective spiking activity of coupled Hodgkin-Huxley neurons