add gallery layout