ui/expandgallery: make scrolling more configurable