Added pointer to photo elements