Proper parsing of the media queries