photo gallery thumbnail fix