added support for iPhone 3/4 grids