and I try to put icon into a rectangle with id:cubeFront. So when I click icon, drag it to cubeFront, and release, I will go into the function putItemIntoSlide, which sets icon as a child of cubeFront.

I check if icon is in cubeFront, by mapping the coordinates of icon to cubeFront, and then check if cubeFront contain this coordinates.