implementing slide menu animation