Hide and destroy invisible elements for performance