substitution also for photo gallery