- figure out how many images there are to show - arrange them into a grid holding total width in pixels constant