you should be able to just move the code in the categories sidebox template