adding photo gallery code