Hops absorb water/wort. There is no way around that. The thing to do is compensate when you are building the recipe so that you still end up with a proper volume. eg scale everything up to 5.5 gallons. That way, when you lose some to the kettle hops and some to the dry hops, you still have 5 gallons to package.