added countWords function

Now we can count words and also adjust height of slide_container and
slide_active