Set the slide size based on window size