[ctioga2] more flexibility in setting frame margins