Chiral defect fermions and the layered phase