Update box size