auto resize for width
more sample snippets