Use layout transitions to switch from a list to a grid view