refactor media queries visibility