fixed gallery and added gallery popups