adding media queries in css file for better thumbnail display