added setTimeout and boolian galleryClickActive to prevent user from spamming clicks and causing image gallery to act weird