optimizations for mobile layout