add createslots to create slots dynamically