Added max width to layers