remove onclick from html
add prepareGallery function