Add dynamic slaves to templates

Change-Id: I1530f2565fb59a20ca81ab481462df0313f39106
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>