Fix dimension

fix the resizing of the components, now perfectly manages multi
dimensions
Merge pull request #8 from kajinka13/master

Fix dimension