preferences: fix usages of FlexGridSizer