change gallery layout + add gallery frame + bugfixes