Gapping cannot be entirely stopped. The wood will expand and contract with the weather, temperature, humidity and such. A humidifier may help to reduce this from happening. You may also note that specific species are more prone to gapping than others. Engineered flooring is far more stable and will not have any issues with gapping.