Please help me any one for this code


When i click on button it initialise 3 images then after if i click on button again its adding 3 more images that i dont want i want to initialise 3 images only whent clivk on button one time or many time