Superconductivity of gallium in confined geometries