close dangling div