Bare with me, I'm JUST learning js and jquery =/ haha

I have a Menu slider using jquery that is 100% width of the browser.
But when the browser is resized, the menu does not refresh and either cuts off some of the items or adds extra space to the end depending if you make the window wider or narrower...

How can I get just the menu to refresh when the browser is resized?

I tried to use something someone suggested but I'm sure I'm doing something wrong.
<script type="text/javascript">
	$(window).resize(function () {
		(''.style.display = 'none')
		(''.style.display = 'block')
Here is the menu.