move class fro g to rect (partition layout)