Adjust pattern dimension and position