added gallery mode

added gallery mode