Buttons fix on window resize

When the users resize their window or update the carousel the buttons were not updated if infinite was set to false