How to put elements in a single line?