Oh, yeah, this can be a bit awkward. Scrolling is cursor-related. It can't move down if there's nothing below the current cursor position.
So, if you don't know the exact gallery table, that's normal. There's a surefire way to find the end of the gallery. Make sure your cursor is on the leftmost column and press/hold down.