modulaize tilelayer