Converted the PagerAdapter class to an inner class of GaragePager