set default gallery type to grid if not selected