Change index for photo