Adaptive page size when screen size change