Working dynamically with the ionic framework slidebox