added a thumbnail + pop up window for the gallery