addressing https://critic.hoppipolla.co.uk/showcomment?chain=1984 by using slice instead of concat