gallery_size moved to segmentation dialog.py