You shouldn't need to prevent gaps entirely. You only need to make sure there are no holes larger than roughly the wavelength of the radiation you're trying to block. Which, for 2.4GHz wifi, is about 125mm. I think what you saw is that a single layer of foil isn't enough skin depths thick to block radiation sufficiently at that frequency.