Fixing media queries for table and mobile devices