Fixes mouseup correctly this time

Retreating along the sleep box doesn't correctly shrink the box
still. It looks like there will be no simple fix for this. Ideally
we should convert the sleep box to an overlaid div so that we don't
have to deal with funky table things.