add gallery mode