move to a slice based adjacency representation.