function to create row of sprites