Theres 2 ways that you can do it 1. Make a document thats 500-600 px wide then like double the ammount you think you will need length wise (30 layers make it 50000 px long), then you can just crop the space you dont use 2. Guess how much you will need and if you run out of space make a new image thats longer and just drag it over to that one 1st is probbibly faster but sometimes if your comp is slow or w/e it cant handle the big sizes
i always start with 600pixels x 9999pixels. and just do it in part 1 - part 2 if needed and the crop tool is very handy for timming the stuff you dont need