clean up hidden elements