I want to expand & collapse hbox/window horizontally(east/west) not vertically(north/south) on image button click in ZK
I think ZK layouts will help you to achieve your task.
ZK Layouts demo example