how can i get the pictures to align just like facebook or ebay?

how can i get the pictures to align like one picture and 3 more in top of each other on the right side of the first one. how can i get the pictures to align like that.