dynamically set viewport to improve tablet viewing