get bounding box w/ margin and border