improved photo gallery layout