load layout for gallery fragment