expand_dimensions function

expand the dimension values into a list