IE doesn't remove dom nodes when they're display: none, but can't handle visibility well it seems. So use display instead.