This is the simplest example. The image layer is contained in another which masks any part of the image which extends beyond it. The inner layer triggers a javascript which allows it to be dragged right or left.
This one is a modification of the code developed by Thomas Brattli. It is available as a Dreamweaver extension at his site.
To see a sliding menu gallery based on frames, CLICK HERE.