fix list items not hiding in Firefox