minor changes to behavior of galleries