Transitions for CSS pop ups added, JS fixed, thumbnails added

Resize pop up function also added