add gallery framework