updated width for contain