prevent flash of un-collapsed elements