Inventory Code - Advice

So I posted a thread awhile back asking for help with my inventory system and where to begin. After getting help, I was able to begin and achieve a very basic system. I am at a loss with how to add the final few touches. First off is the current state of the different slots, currently each type of item has its own slot, it can’t go anywhere else. How would I allow any slot to hold any item? Second how would I add the ability to drop items? Third How can I add pictures that represent the items inside the inventory?

Thanks for any help I can get!

Here is my code

Adding items

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AddItem : MonoBehaviour
{

    [SerializeField]
    private ItemDatabase iDatabase;

    void Update ()
    {
        Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);
        RaycastHit hit;
        if (Physics.Raycast (ray, out hit, 100))
        {
            if (Input.GetMouseButtonDown(0))
            {
                foreach (Item i in iDatabase.InventoryDat)
                {
                    if (i.ItemName == hit.collider.tag)
                    {
                        i.ItemAmount += Random.Range (1,10);
                        Destroy (hit.collider.gameObject);
                    }
                }
            }
        }
    }
}

Actual System

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InventorySystem : MonoBehaviour
{
    public GameObject InventoryPanel;
    [SerializeField]
    private bool isActive;

    void FixedUpdate ()
    {
        if (Input.GetButtonDown ("Inventory"))
        {
            isActive = !isActive;
        }
        if (isActive)
        {
            ActivateInventory ();
        }
        if (!isActive)
        {
            DeactiveInventory ();
        }
    }
    void ActivateInventory()
    {
        if (InventoryPanel.active == false)
        {
            InventoryPanel.SetActive (true);
        }
    }
    void DeactiveInventory()
    {
        if (InventoryPanel.active == true)
        {
            InventoryPanel.SetActive (false);
        }
    }
}

Item

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

[System.Serializable]
public class Item
{
    public string ItemName;
    public int ItemAmount;
    public GameObject itemSlot;
    public Text ItemAmountT;


    public Item(string iName, int iAmount, GameObject iSlot, Text IAmountT)
    {
        iName = ItemName;
        iAmount = ItemAmount;
        iSlot = itemSlot;
        IAmountT.text = "" + ItemAmountT;
    }

}

Database

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class ItemDatabase : MonoBehaviour
{
    public List<Item> InventoryDat = new List<Item>();

    void Start ()
    {
        foreach (Item i in InventoryDat)
        {
            i.ItemAmount = PlayerPrefs.GetInt (i.ItemName);
        }
    }

    void FixedUpdate()
    {
        foreach (Item i in InventoryDat)
        {
            i.ItemAmountT.text = "" + i.ItemAmount;
            if (i.ItemAmount > 0)
            {
                i.itemSlot.SetActive (true);
            }
            else
            {
                i.itemSlot.SetActive (false);
            }
            if (i.ItemAmount != PlayerPrefs.GetInt(i.ItemName))
            {
                PlayerPrefs.SetInt (i.ItemName, i.ItemAmount);
                print ("Saved: "+i.ItemName);
            }
        }
    }
}

Thank you for your help!

There are quite a few Unity inventory system tutorials on youtube… I recommend taking a peek through those for some ideas about how to modify yours to do the next things you need.