resize_to_limit