It could be a problem with the size of the inventory sprites, try using the SetInvDimensions () command. By default, I think it spaces items based on 40 x 22 pixels, whatever their actual size. This would explain the overlap, and the last item getting cut off.
Hope this helps.
Hope this helps.