Changing transition speed depending on a screen size