Fix css layout for visibility