added gallery position counter