separates istances rows based on whther a surface/bulk atom