Better resizing of photos page