added image gallery directive to reduce page speed, delegated share js initialization