added right and left classes