[lib] use outerWidth instead of width
[test] update tests to consider padding/margin between items
Release 0.3.2