Instead of slicing the buildings with Contour, why not just copy the ground floor “slab”? See orange group below. Maybe extrude it first to give it a little thickness:
Thank you Joseph. It is what I did last night to be able to isolate all roofs.