Updated scrollpane function to use CSS clip