Relaxation of the incompressible porous media equation