FB-14497: Fix gallery responsive