converting grid gallery example