refactored padded-tiling mode into its own layout