Add auto magin to the panel