fix margins and tile sizes