slab vs border contact detection