added init

init and slide