updating analytics, hidding nav at ends, bug fix for gallery