placing sprites within compact layout and displaying them