How can I align layers side-by-side and crop them automatically in Photoshop CS5?
Here's an example:

Here is another example:

I found the solution with this sprite generators, but all them have the same problem: a really small size limitation:
http://www.shoutmeloud.com/9-great-free-online-css-sprite-generator.html