Auto config slicename

Added Auto-configuration of slice for resource name
Merge pull request #2 from dbhat/stable

Auto config slicename