adjust size and remove unused css