Implemented tiling in horizontal direction