Fixes layouting for different number of items
Merge pull request #15 from RtxLabs/fix-layout-issue-14

Fixes layouting for different number of items