sets the bounds after change of location