Optimizations for screen size variation