update transition speed based on device size