Improved iOS 5-7 support. More flexible handling of the pages if the view gets resized.