Make attachment layout widths responsive

Set max-width instead of width