make auto margins