Added global variable for storing the clicked point on a slide