Fixed memory overflow issue

Reduced the amount of resources that are allocated.
Changed the inventory height.