event listener for resize was incorrectly written

removed () which registers it properly now