spawn a sprite on a UI in C#

hello

So i have a slider handle going from left to right. I want a sprite to spawn where the handle of the slider is when the left mouse button was clicked. All I have is:

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

public class Axesmarks : MonoBehaviour {

	public Sprite woodCrack;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetMouseButtonDown(0)){
		
		}
	}
}

is there a way to do this?

Add an empty gameobject to the Slider Handle which will be the “SpriteHolder” place the spriteholders transform into the scripts SpriteHolder.

 public class Axesmarks : MonoBehaviour {
 
     public Sprite woodCrack;
     public Transform spriteHolder;
     // Use this for initialization
     void Start () {
         
     }
     
     // Update is called once per frame
     void Update () {
         if (Input.GetMouseButtonDown(0)){
         Instantiate(woodCrack, spriteHolder.transform.position, Quaternion.identity);
         }
     }
 }