Change to hidden visibility instead of display non for better compatibility