added method to create sublayers