Mixed state of the layered metals