close a dangling div