create function to fix width for slide carousel; add function to add event listener for slide carousel