Layout.to_h handles inner and outer margins