basic functionality of the two gallery panes