slide function is written in slide_test and is perfected.
checked code for the alternate map as well.