add css rules to hide element which unloaded