added media query check for device size