hotbar and inventory refactoring code for better performance, less redundant code and fixing scaling to screensize to work properly