added listener to window resizing, which hides/shows menu block depending on the windows width