You have a collection of things. Put it in a collection in your code. Use arrays. Or vectors.
And since you're building a bunch of things that should be more or less identical, you should make a class for those.
Also, you don't need to know that the one the user clicked on was the fifth one, probably. You already know that it was the one they clicked on. So just use the target and currentTarget properties in your event handler to get the correct instances.