Added gallery function and styles