The unsteady flow of a weakly compressible fluid in a thin porous layer