added previous to photo gallery