resize top navigation when page scroll