updating photo layout