Set touch layer size dynamically