use media query instead of js