implement rendering logic for the item slot