redesigned
added gallery init