get min & max bounding box