fix photo gallery