the larger the mass of the gauge boson, the shorter the range of the force. the mass of W bosons are about 100 times larger than the mass of protons, so the weak force has a very short range. this is because creating a virtual W particle uses so much energy that it can only exist for a short time and it cant travel far. whereas the photon has zero mass, so the electromagnetic force has infinite range