set max width and minor padding