VID-1932 Support expand option for gallery