reshape grid from perspective