Calculator sliding feature

How can i implement the follow layout?