first step on gallery appending