Setting maximum size of middle grid. Now if someone has huge resolution, the photos can still remain positioned in the right way