add silding menu function