Improve Activity Pager Layout for horizontal and vertical cases
Adds option to configure layout.
BUG:367990