Add responsive layout to galleries