transform_bounds function

Transform boundary