Balance a gallery interface so that there are no 'empty boxes'.