change the layout of MAG position