Add padding around the grid (useless for now)
Padding replication
Remove mod func