The Slater model of K(H1-xDx)2PO4 in two dimensions