create adaptive grid for navigation when the sceren size shrinks and change it to a icon base navigation bar