A model for diffusive gas flow through narrow channels