Factorize the image list in a directive. Add the possibility to expand or shrink the list.