add cube transition for photo