resized photos and added media queries